//
//  UIView+ABCRepeateClick.h
//  ABCRepeateClick
//
//  Created by luoshizhen on 2024/7/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^abcViewClick)(void);
@interface UIView (ABCRepeateClick)
///内部使用
@property (nonatomic,assign,readonly) BOOL abcPreventRepeateClick;

///插入点击事件函数最上方，限制多长时间内重复点击，单位数为s
- (BOOL)abcPreventRepeateClickAction:(NSTimeInterval)delay;
- (void)abcPreventRepeateClickAction:(NSTimeInterval)delay actionBlock:(abcViewClick)clickBlock;

@end

NS_ASSUME_NONNULL_END
